﻿@model HdipCricketClub.Models.Fixture

@{
    ViewBag.Title = "WhoBattedFirst";
}

<h2>Which Team Batted First?</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Fixture</legend>

        @Html.HiddenFor(model => model.fixture_id)
        @Html.HiddenFor(model => model.team_id)
        @Html.HiddenFor(model => model.opponent_id)
        @Html.HiddenFor(model => model.type)
        @Html.HiddenFor(model => model.home)
        @Html.HiddenFor(model => model.date)
        @Html.HiddenFor(model => model.start_time)
        @Html.HiddenFor(model => model.no_of_players)
            
        <div class="editor-label">
            did @Html.DisplayFor(model => model.Team.Club.name) bat first ?
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.batted_first)
            @Html.ValidationMessageFor(model => model.batted_first)
        </div>

        @Html.HiddenFor(model => model.scorecard_entered)
            

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}


